<?php
$this->breadcrumbs = array(
	'项目列表' => array(
		'index'
	),
	$model->name,
);

$this->userActions = array(
	array(
		'label' => '项目列表',
		'url' => array(
			'index'
		),
		'iconClass' => 'icon-building'
	),
	array(
		'label' => '新建项目',
		'url' => array(
			'create'
		),
		'iconClass' => 'icon-building-add',
		'visible' => Yii::app()->user->checkAccess('projectManage'),
	),
	array(
		'label' => '更新 ' . $model->name,
		'url' => array(
			'update',
			'id' => $model->id
		),
		'iconClass' => 'icon-building-edit',
		'visible' => Yii::app()->user->checkAccess('projectManage'),
	),
	array(
		'label' => '删除 ' . $model->name,
		'url' => '#',
		'linkOptions' => array(
			'submit' => array(
				'delete',
				'id' => $model->id
			),
			'confirm' => 'Are you sure you want to delete this item?'
		),
		'iconClass' => 'icon-building-delete',
		'visible' => Yii::app()->user->checkAccess('projectManage'),
	),
	array(
		'label' => '管理项目',
		'url' => array(
			'admin'
		),
		'iconClass' => 'icon-building-link',
		'visible' => Yii::app()->user->checkAccess('projectManage'),
	),
);
?>

<h1>View Project #<?php echo $model->id; ?></h1>
<?php $this
	->widget('zii.widgets.CDetailView',
		array(
			'data' => $model,
			'attributes' => array(
				'id',
				'name',
				'note',
				'createTime',
				'createUserId',
				'updateTime',
				'updateUserId',
			),
		));
?>
